import {
  Controller,
  Get, Post, Redirect, HttpCode, Header,
  Req, Request, Query, Headers, Session, Ip, Param, Body, Res, Response, Next, Inject,
} from '@nestjs/common'

// 提供者

@Controller()
export class AppController {
  constructor(
  ) { }

  @Get()
  handle() {
    return 'provider'
  }

  @Post()
  handlePost() {
    return 'post middleware'
  }

  @Get('user')
  handleUser() {
    return 'user'
  }

  @Get('user/a')
  handleUserA() {
    return 'user/a'
  }
}
